# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=asciinema-rs
pkgver=0.5.1
pkgrel=3
pkgdesc="A reimplementation of the asciinema command line program written in Rust."
url="https://github.com/LegNeato/asciinema-rs"
arch="x86_64" # Limited by cargo
license="Apache-2.0 MIT"
makedepends="cargo openssl-dev cargo-auditable"
source="https://github.com/LegNeato/asciinema-rs/archive/v$pkgver/asciinema-rs-v$pkgver.tar.gz
	 openssl3.patch
	 "
options="!check" # fail on 'home'


build() {
	cargo auditable build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dt "$pkgdir"/usr/bin target/release/asciinema
}

sha512sums="
59a786a6a82122c33200bc7eb30e96e38548e45eb478eae259fa8ccd601b0bd596d4d9066ce75a5dc95abdaa97554f4a05cc2218b4c228566a65ed510d35c600  asciinema-rs-v0.5.1.tar.gz
0618071301549fa61965c2644a0f6b717caa54ab3ec60c4d345e182b89180a6ab03956f9a027f9e72c7ea99d9212689ab24e9b7f70e924d6d45e3efc17496812  openssl3.patch
"
